<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/WEB-INF/jsp/inc/taglibs.jsp"%>
		<%@ include file="/WEB-INF/jsp/inc/meta.jsp"%>
		<script type="text/javascript">
	function checkAll(val) {
		//alert(val);
		if (val)
			$('input[name=ids]').each(function() {
				$(this).attr('checked', true);
			})
		else
			$('input[name=ids]').each(function() {
				$(this).attr('checked', false);
			})
	}
	function gotopage() {
		var page = $('#topage').val();
		var url = '${approot}/admin/prepaid/list/page/' + page;
		// alert(url);
		window.location.href = url;
	}
	//清空恢复表单原始数据
	function formreset() {
		$("input[type=text]").val("");
		$("#type").val("0");
	}

	//批量删除
	function delete_batch() {
		var count = 0;
		$('input[name=ids]:checked').each(function() {
			count = count + 1;
		})
		if (count == 0) {
			alert("请至少选中一条记录");
			return false;
		} else {
			var ids = "";
			$("input[name='ids']:checked").each(function() {
				ids = ids + $(this).val() + "_";
			})
			var url = '${approot}/admin/prepaid/delete_batch/' + ids;
			//alert(url);
			//window.location.href=url;

		}

	}

//	function to_pay_money(id){
//		window.open('${approot}/admin/excerpt/to_pay_money/'+id,'_blank','height=600,width=800,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no,left=200,top=200');
//	}
</script>
	</head>
	<body style="background: #E8F5FE; padding: 15px 18px;" class="scroll_r">
		<form method="post"
			action="${approot}/admin/statistic/daily_statistic"
			id="dailyStatisticBean">
			<table border="0" cellpadding="0" cellspacing="1" width="92%"
				align="center" id="add_tab">
				<tr>

					<td width="500" colspan="3"></td>
					<th>
						统计时间：
					</th>
					<td>
						<input type="text" id="startTime" name="startTime"
							value="${dailyStatisticBean.strStartDate}" class="Wdate"
							onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}',startDate:'%y-%M-01 ',dateFmt:'yyyy-MM-dd ',alwaysUseStartDate:true})" />
					</td>
					<th>
						至
					</th>
					<td>
						<input type="text" id="endTime" name="endTime"
							value="${dailyStatisticBean.strEndDate}" class="Wdate"
							onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',startDate:'%y-%M-01 ',dateFmt:'yyyy-MM-dd ',alwaysUseStartDate:true})" />
					</td>
				</tr>
				<tr>
					<td colspan="8" style="text-align: center">
						<input type="submit" class="but" value="开始查询">
						<input type="button" class="but" onclick="formreset()"
							value="重置条件">
					</td>
				</tr>
			</table>
		</form>
		<c:choose>
			<c:when test="${fn:length(dsList)<1}">
				<div align="center">
					<font color='red'>对不起,暂时没有找到符合条件的数据!</font>
				</div>
			</c:when>
			<c:otherwise>
				<table border="0" cellpadding="" cellspacing="1" align="center"
					id="web_tab" width="92%">
					<tr>
						<th>
							
						</th>
						<th colspan="8">
							燃气报装大厅
						</th>
						<th colspan="4">
							初装费
						</th>
						<th colspan="8">
							开通数
						</th>
					</tr>
					<tr>
						<th>
							日期
						</th>
						<th>
							挺宇户外
						</th>
						<th>
							挺宇户内
						</th>
						<th>
							蓝焰户外
						</th>
						<th>
							蓝焰户内
						</th>
						<th>
							山城户外
						</th>
						<th>
							山城户内
						</th>
						<th>
							天信户外
						</th>
						<th>
							天信户内
						</th>
						<th>
							其中1300
						</th>
						<th>
							其中2000
						</th>
						<th>
							其中2300
						</th>
						<th>
							新增户数
						</th>
						<th>
							挺宇户外
						</th>
						<th>
							挺宇户内
						</th>
						<th>
							蓝焰户外
						</th>
						<th>
							蓝焰户内
						</th>
						<th>
							山城户外
						</th>
						<th>
							山城户内
						</th>
						<th>
							天信户外
						</th>
						<th>
							天信户内
						</th>
					</tr>
		
					<c:forEach var="dailyStatistic" items="${dsList}" varStatus="s">
						<tr>
							<td width="100" >
								${dailyStatistic.dailyDate}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.tingyuhuwai}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.tingyuhunei}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.lanyanhuwai}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.lanyanhunei}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.shanchenghuwai}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.shanchenghunei}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.tianxinhuwai}
							</td>
							<td width="80" style="background-color: rgb(221, 221, 221);">
								${dailyStatistic.tianxinhunei}
							</td>
							<td width="80" style="background-color: rgb(124, 214, 147);">
								${dailyStatistic.shisan}
							</td>
							<td width="80" style="background-color: rgb(124, 214, 147);">
								${dailyStatistic.ershi}
							</td>
							<td width="80" style="background-color: rgb(124, 214, 147);">
								${dailyStatistic.ershisan}
							</td>
							<td width="80" style="background-color: rgb(124, 214, 147);">
								${dailyStatistic.quantity}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.tingyuhuwai_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.tingyuhunei_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.lanyanhuwai_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.lanyanhunei_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.shanchenghuwai_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.shanchenghunei_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.tianxinhuwai_1}
							</td>
							<td width="80" style="background-color: rgb(19, 236, 203);">
								${dailyStatistic.tianxinhunei_1}
							</td>
						</tr>
					</c:forEach>
				</table>
			</c:otherwise>
		</c:choose>
	</body>
</html>
